<template>
  <el-card>
    <div class="box">
      <img :src="userStore.avatar" alt="" srcset="" class="avatar" />
      <div class="bottom">
        <h3 class="title">{{ getTime() }}{{ userStore.username }}</h3>
        <p class="subtitle">硅谷甄选运营平台</p>
      </div>
    </div>
  </el-card>
  <div class="bottom1">
    <svg-icon name="welcome" style="width: 500px; height: 500px"></svg-icon>
  </div>
</template>

<script lang="ts" setup>
import useUserStore from '@/store/modules/user'
let userStore = useUserStore()
import { getTime } from '@/utils/time'
</script>

<style lang="scss" scoped>
.box {
  display: flex;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.bottom {
  margin-left: 20px;

  .title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 30px;
  }

  .subtitle {
    font-style: italic;
    color: skyblue;
  }
}

.bottom1 {
  display: flex;
  justify-content: center;
}
</style>
